NIELIT O Level Exam

What will be the output of the following Python code?

  1. >>>str1="helloworld"
  2. >>>str1[::-1]

What will be the output of the following Python code?

  1. >>>str1="helloworld"
  2. >>>str1[::-1]


निम्नलिखित Python कोड का आउटपुट क्या होगा?

A. dlrowolleh

B. hello हेलो

C. world वर्ल्ड

D. helloworld हेलोवर्ल्ड




Correct Answer is :

A. dlrowolleh



Explanation
Execute in shell to verify.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad